{% load work_package_tags %}
{% load humanize %}

<div class="workPackage">
  <table class="workPackage">
    <tr>
      <th>Code</th>
      <th>Title</th>
      <th>Start Date</th>
      <th>End Date</th>
      <th>Project</th>
      <th>Status</th>
    </tr>
    {% for work_package in work_package_list %}
    <tr>
      <td><a href="{% url work_package_detail object_id=work_package.id %}">{{ work_package.code }}</a></td>
      <td><a href="{% url work_package_detail object_id=work_package.id %}">{{ work_package.title }}</a></td>
      <td>{{ work_package.start_date|naturalday }}</td>
      <td>{{ work_package.end_date|naturalday }}</td>
      <td><a href="{% url project_detail object_id=work_package.project.id %}">{{ work_package.project }}</a></td>
      <td>{% work_package_status work_package %}</td>
    </tr>
    {% endfor %}
  </table>
</div>
